namespace ZR.Model.Dto.Business.ProductionControl
{
    /// <summary>
    /// 扫码枪配置表查询对象
    /// </summary>
    public class ScannerConfigQueryDto : PagerInfo
    {
    }

    /// <summary>
    /// 扫码枪配置表输入输出对象
    /// </summary>
    public class ScannerConfigDto
    {
        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        public string ProductionLineCode { get; set; }

        public string WorkstationCode { get; set; }

        public string ScannerType { get; set; }

        public string TcpAddress { get; set; }

        public int? TcpPort { get; set; }

        public string SerialPort { get; set; }

        public int? BaudRate { get; set; }

        public int? DataBits { get; set; }

        public int? StopBits { get; set; }

        public string Parity { get; set; }
        public DateTime? CreationTime { get; set; }

        public string CreatorName { get; set; }

        [ExcelColumn(Name = "扫码枪类型")]
        public string ScannerTypeLabel { get; set; }
    }
}